package chixing.day12.homwork.work7;

public class MailAddress {
    private String name;//姓名
    private String telno;//手机号
    private String street;//街道
    private String city;//市（县）
    private String state;//省（自治区）
    private String country;//国家（地区）
    private int pincode;//代码

    public MailAddress(String name, String telno, String street, String city, String state, String country, int pincode) {
        this.name = name;
        this.telno = telno;
        this.street = street;
        this.city = city;
        this.state = state;
        this.country = country;
        this.pincode = pincode;
    }

    public String getName() {
        return name;
    }


    @Override
    public String toString() {
        return  "name='" + name + '\'' +
                ", telno='" + telno + '\'' +
                ", street='" + street + '\'' +
                ", city='" + city + '\'' +
                ", state='" + state + '\'' +
                ", country='" + country + '\'' +
                ", pincode=" + pincode +
                '}';
    }
}
